#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
typedef long long LL;

int main(int argc, char** argv) {
    LL x1,x2,x3;
    cin>>x1>>x2>>x3;
    LL a,b,c;
    b = sqrt(x1*x2/x3);
    a = x1/b;
    c = x2/b;
    cout<<4*(a+b+c)<<endl;
    return 0;
}
